<?php
namespace Controllers;
class UserController extends CommonController {
    public function login() {
        return $this->render('user/login');
    }

    public function doLogin() {
        $username = isset($_POST['username']) ? $_POST['username'] : '';
        if (empty($username)) return $this->responseJson(400, '用户名必须填写');
    }
}